Working out some issues with the Ticktock class and keeping it in this Notebook because that's what I want to DO.


In [1]:
import spacepy.time as spt
import datetime as dt

In [2]:
dts = spt.doy2date([2002]*4, range(186,190), dtobj=True)
dts


Out[2]:
[datetime.datetime(2002, 7, 5, 0, 0),
 datetime.datetime(2002, 7, 6, 0, 0),
 datetime.datetime(2002, 7, 7, 0, 0),
 datetime.datetime(2002, 7, 8, 0, 0)]

In [4]:
dts = spt.Ticktock(dts,'UTC')
dts.DOY


Out[4]:
dmarray([186, 187, 188, 189])

In [ ]:
# Ticktock object creation
isodates = []